package com.mida.bms.report.mapper;

import com.mida.bms.report.entity.DocDefineSpaceConsumer;
import com.mida.bms.report.vo.DocDefineSpaceConsumerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DocDefineSpaceConsumerMapper {
    int deleteByPrimaryKey(Long defSpcConsumerSoid);

    int deleteByDefineSpaceSoid(Long defineSpaceSoid);

    int insert(DocDefineSpaceConsumer record);

    int insertSelective(DocDefineSpaceConsumer record);

    DocDefineSpaceConsumer selectByPrimaryKey(Long defSpcConsumerSoid);

    int updateByPrimaryKeySelective(DocDefineSpaceConsumer record);

    int updateByPrimaryKey(DocDefineSpaceConsumer record);

    int updateStatusByDefineSpaceSoid(@Param("status") Long status, @Param("defineSpaceSoid") Long defineSpaceSoid);

    List<DocDefineSpaceConsumerVo> selectConsumersByDefineSpaceSoid(Long stTempDefineSoid);

}